
const routes = [
  {//主页页面
    path: '/HomeView',
    name: 'HomeView',
    meta: { title: '主页面' },
    component: () => import('../views/HomeView.vue'),
    children: [
      {
        path: '/HomeView/list',//列表页面
        name: 'list',
        meta: { title: '列表' },
        component: () => import('../views/Home/List.vue'),
      },
      {
        path: '/HomeView/bao',//爆爆团页面
        name: 'bao',
        meta: { title: '爆爆团' },
        component: () => import('../views/Home/Bao.vue'),
      },
      {
        path: '/HomeView/dingdan',//订单页面
        name: 'dingdan',
        meta: { title: '订单' },
        component: () => import('../views/Home/Dingdan.vue'),
      },
      {
        path: '/HomeView/wode',//我的页面
        name: 'wode',
        meta: { title: '我的页面' },
        component: () => import('../views/Home/Wode.vue'),
      }, {
        path: '/HomeView',
        redirect: '/HomeView/list'//重定向
      },
      {// 404 路由
        path: '*', // * 表示匹配任何路由(所有路由)
        component: () => import('../views/NotFound.vue')
      }
    ],

  },
  //登录路由
  {
    path: '/Login',
    name: 'Login',
    meta: { title: '登录' },
    component: () => import('../views/Login.vue'),

  },
  //注册路由
  {
    path: '/Register',
    name: 'Register',
    meta: { title: '注册' },
    component: () => import('../views/Register.vue'),

  },
  //店铺详情页面
  {
    // path: '/XiangQing/:mtWmPoiId', //方式一跳转店铺详情
    path: '/XiangQing/:id',//方式二跳转店铺详情
    name: 'XiangQing',
    meta: { title: '店铺详情' },
    component: () => import('../views/XiangQing.vue'),

  },
  //新增地址详情页面
  {
    path: '/Address',
    name: 'Address',
    meta: { title: '店铺详情' },
    component: () => import('../views/Address.vue'),

  },


  {
    path: '/',
    redirect: '/HomeView'//重定向
  },
  {// 404 路由
    path: '*', // * 表示匹配任何路由(所有路由)
    component: () => import('../views/NotFound.vue')
  }

]

export default routes;